package com.jaws.demo.service;

import lombok.extern.slf4j.Slf4j;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import com.jaws.core.common.log.Log;

@Service
@Slf4j
public class AsyncService {
	
	@Async
	public void async(){
		try {
			Thread.currentThread().sleep(5000);
			log.info(Log.op("AsyncService.async").msg("异步执行").kv("aaa", "aaa").toString());
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
